import { STATUS_TEXT, STATUS_VALUE } from './default';

export const BOOK_STATUS = [
  { label: '已完成', value: '1' },
  { label: '已获得阶段性成效需长期支持', value: '2' },
  { label: '未完成', value: '0' },
  { label: '无法整改', value: '3' },
];

export type BOOK_STATUS_TYPE = keyof typeof BOOK_STATUS_TEXT;

export enum BOOK_STATUS_ENUM {
  PROCCESS = 0,
  COMPLETE = 1,
  SUPPORT = 2,
  DENIED = 3,
}

export const BOOK_STATUS_TEXT: { [key: number]: string } = {
  0: '未完成',
  1: '已完成',
  2: '已获得阶段性成效需长期支持',
  3: '无法整改',
};

export const STATUS_OPTIONS = {
  [STATUS_VALUE.NORMAL]: STATUS_TEXT.NORMAL,
  [STATUS_VALUE.PENDING]: STATUS_TEXT.PENDING,
  [STATUS_VALUE.PROCESSED]: STATUS_TEXT.PROCESSED,
};
